package com.mujie.advice;

import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;

public class IntroduceAdvice extends DelegatingIntroductionInterceptor implements Navigable {
    @Override
    public void navigate() {
        System.out.println("我是一辆车，但我可以导航");
    }

    @Override
    public Object invoke(MethodInvocation mi) throws Throwable {
        return super.invoke(mi);
    }
}
